 var appInstance = getApp()
 function WXPayment(data, CallBack)
 {
      //根据传递过来的参数
 }